package main;

import model.factory.DataAcces;
import model.factory.Service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import persistence.service.UserPersistenceService;
import persistence.service.impl.UserPersistenceServiceImpl;
import business.service.impl.UserBusinessServiceImpl;
import controller.ApplicationController;

public class Application {

	public static void main(String[] args){
		Service daoService = new Service(DataAcces.HIBERNATE);
		UserPersistenceService ups = new UserPersistenceServiceImpl(daoService);
		UserBusinessServiceImpl ubs = new UserBusinessServiceImpl(ups);
		System.out.println("Program starting!");
		ApplicationController ac = new ApplicationController(ubs);
		
		Logger logger = LoggerFactory.getLogger(Application.class);
		logger.info("Program started.");
	}
	
}
